package com.nondo.dean.product.model.result;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.nondo.dean.common.tool.BeanUtils;
import com.nondo.dean.product.domain.ProductMix;

public class ProductMixResult {
    /**
     * 主键ID
     */
    private Integer id;

    /**
     * 组合名称
     */
    private String mixName;
    
    /**
     * 组合价格
     */
    private BigDecimal mixPrice;

    /**
     * 上下架状态：0下架.1上架
     */
    private Integer shelfStatus;

    /**
     * 创建日期
     */
    protected Date createDate;

    /**
     * 参与组合的产品列表
     */
    List<ProductResult> productList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMixName() {
        return mixName;
    }

    public void setMixName(String mixName) {
        this.mixName = mixName;
    }

    public BigDecimal getMixPrice() {
        return mixPrice;
    }

    public void setMixPrice(BigDecimal mixPrice) {
        this.mixPrice = mixPrice;
    }

    public Integer getShelfStatus() {
        return shelfStatus;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public void setShelfStatus(Integer shelfStatus) {
        this.shelfStatus = shelfStatus;
    }

    public List<ProductResult> getProductList() {
        return productList;
    }

    public void setProductList(List<ProductResult> productList) {
        this.productList = productList;
    }

    public static ProductMixResult covertToBean(ProductMix productMix) {
        ProductMixResult productMixResult = new ProductMixResult();
        BeanUtils.copy(productMix, productMixResult);
        return productMixResult;
    }

}
